import request from "../request.js";

// 购物车接口
export function shopping(data) {
  return request({
    url: "/api/shopping",
    method: "post",
    data
  });
}

// 加入购物车接口
export function shopping_add(data) {
  return request({
    url: "/api/shopping/add",
    method: "post",
    data
  });
}

// 购物车删除接口（可批量）
export function shopping_del(data) {
  return request({
    url: "/api/shopping/del",
    method: "post",
    data
  });
}

// 购物车支付接口
export function shopping_play(data) {
  return request({
    url: "/api/shopping/pay",
    method: "post",
    data
  });
}

// 购物车取消支付接口
export function shopping_cancelPay(data) {
  return request({
    url: "/api/shopping/cancel_pay",
    method: "post",
    data
  });
}
